package springcloud.easybuy.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import springcloud.easybuy.entity.EasybuyProduct;

import java.util.List;

@FeignClient(value = "easybuy-product-manager")
public interface EasybuyProductManagerClient {
    @RequestMapping("/product/queryAllProduct")
    public List<EasybuyProduct> queryProduct();

    @RequestMapping("/product/findProductById/{id}")
    public List<EasybuyProduct> queryProductById(@PathVariable("id") int id);


    @RequestMapping("/product/findById/{id}")
    public EasybuyProduct findByMainId(@PathVariable("id") int id);
}
